-- GENERATED SPELL FOR [Bladespire Champion] --


function spell0_21296(pUnit, Event) --@Bloodmaul Intoxication,n/a--
pUnit:FullCastSpellOnTarget(35240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21296', 25000, 1)
end

function spell1_21296(pUnit, Event) --@Mighty Charge,n/a--
pUnit:FullCastSpellOnTarget(37777,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21296', 668, 1)
end

function spell2_21296(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_21296', 10307, 1)
end

function Sorts_21296(pUnit, Event)
local choix_sorts_21296 = math.random(0, 2)
if choix_sorts_21296 == 0 then
pUnit:RegisterEvent('spell0_21296', 1, 1)
end
if choix_sorts_21296 == 1 then
pUnit:RegisterEvent('spell1_21296', 1, 1)
end
if choix_sorts_21296 == 2 then
pUnit:RegisterEvent('spell2_21296', 1, 1)
end
end

function mob21296_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21296', math.random(1500, 3000), 1)
end

function mob21296_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21296_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21296_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21296, 1, 'mob21296_Action')
RegisterUnitEvent(21296, 2, 'mob21296_Leave')
RegisterUnitEvent(21296, 3, 'mob21296_Kill')
RegisterUnitEvent(21296, 4, 'mob21296_Die')
